package cn.myjerry.mediator;

public class Market implements Department {

	private Mediator m;	// 持有中介者的引用
	
	public Market(Mediator m) {
		super();
		this.m = m;
		m.register("Market", this);
	}

	@Override
	public void selfAction() {
		System.out.println("跑市场");
	}

	@Override
	public void outAction() {
		System.out.println("汇报工作");
		m.command("finance");
	}
	
}
